﻿package  
{
	
	import flash.display.MovieClip;
	//import flash.utils.Timer;
	//import flash.events.TimerEvent;
	
	
	public class TopRightUI extends MovieClip 
	{
		
		
		public function TopRightUI() 
		{
			// constructor code
			
			SetTime( 23 , 10 );
			
			//var sfs:Timer = new Timer( 10 );
			//sfs.addEventListener(TimerEvent.TIMER , onTimer );
			//sfs.start();
		}
		
		public function SetTime( h:int , m:int ):void
		{
			h = -10.6666 * h - 0.1777 * m - 24;
			
			timeMc.x = h;
		}
		
		//private var n:int = 0;
		//private var n1:int = 0;
		//private function onTimer( e:TimerEvent ):void
		//{
			//SetTime( n , n1++ );
			//
			//if ( n == 24 )
			//{
				///n = 0;
			//}
			
			//if ( n1 == 60 )
			//{
				//n++;
				//n1 = 0;
				//trace( n );
			//}
				
		//}
		
	}
	
}
